<h1>Add an Pet</h1>

<p><?php echo validation_errors(); ?></p>
<form action="<?php echo site_url('pets'); ?>/add/<?php echo $id; ?>" method="post">
<fieldset>
        <legend>Pet Information</legend>

        <?php if(isset($pet_id)):?>
         <input type='hidden' name='id' value='<?php echo $pet_id; ?>' />
        <?php endif;?>

        <label for="pet_name">Pet Name:</label><input type="text" name="pet_name" id="pet_name" tabindex="1" value="<?php echo set_value('pet_name'); ?>" />
        <label for="species">Species:</label><input type="text" name="species" id="species" tabindex="2" value="<?php echo set_value('species'); ?>" /><p/>
        <label for="breed">Breed:</label><input type="text" name="breed" id="breed" tabindex="3" size="53" value="<?php echo set_value('breed'); ?>" /><p/>
        <label for="weight">Weight:</label><input type="text" name="weight" id="weight" tabindex="4" size="26" value="<?php echo set_value('weight'); ?>" />
        <label for="coloring">Coloring:</label><input type="text" name="coloring" id="coloring" tabindex="2" value="<?php echo set_value('coloring'); ?>" /><p/>
        <label for="knowncondtions" class="topalign">Known Conditions:</label><textarea name="knownconditions" id="knownconditions" tabindex="11" cols="61" rows="3">  <?php echo set_value('knownconditions'); ?></textarea><p/>
        <label for="notes">Notes:</label><input type="text" name="notes" id="notes" maxlength="5" size="5" tabindex="6" value="<?php echo set_value('notes'); ?>" /><p/>

        <button type="submit" tabindex="12">Submit &raquo;</button>
    </fieldset>
</form>


